package Connection;


import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;

/**
 *
 * @author murcrayw6785
 */
public class ChatClient 
{
    
    
    
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException
    {
        Socket socket = null;
        
        final String SERVER_IP = "10.1.11.57";
        
        try
        {
            socket = new Socket(SERVER_IP, 4444);
            System.out.println("Server connected: " + socket.getInetAddress());
            System.out.println("++++++++++++++++++++++++++++++++++++++++++\n");
            Connection conn = new Connection(socket, "SERVER");
            conn.connect();
        }
        catch(UnknownHostException uhe)
        {
            System.err.println("Cannot find server");
            System.exit(1);
        }
        catch(IOException ioe)
        {
            System.err.println("Could not get IO from server");
            System.exit(1);
        }
    }
}
